/*
 * copyright (c) 2009 Alexandr [Sn@ble] Surnin
 *
 * This file is part of CVP.
 *
 * CVP is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * CVP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You can read the full version of GNU LGPL in
 * http://www.gnu.org/copyleft/lesser.html
 */


#ifndef TRACKSWIDGET_H
#define TRACKSWIDGET_H

#include <QWidget>
#include <QList>
#include <QVBoxLayout>

#include "track.h"
#include "timeline.h"

/** Tracks space class
  * \author Alexandr [Sn@ble] Surnin
  * Draws all tracks
  */
class TracksWidget : public QWidget {

public:
    TracksWidget(QWidget *parent = 0);

public slots:
    void addTrack(Track *track);

private:
    QList<Track*> tracks;
    TimeLine *timeLine;
    QVBoxLayout *mainLayout;
};

#endif // TRACKSWIDGET_H
